package com.ssd.api.user;

import com.ssd.api.user.dto.UserVo;
import com.ssd.view.BaseResponse;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 用户服务-用户接口
 */
@FeignClient(name = "user-service", url = "http://localhost:9006/user-service/inner/user")
public interface UserApi {


    /**
     * 根据用户id查询用户信息
     * @return
     */
    @GetMapping("/{id}")
    @ApiOperation(value = "根据用户id查询用户信息")
    public UserVo findById(@ApiParam(value = "用户id") @PathVariable("id") Long id);
}
